package com.cskaoyan.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author stone
 * @date 2021/11/25 17:31
 */
//@ComponentScan("com.cskaoyan.controller")
//@EnableWebMvc    //全面接管SpringMVC的配置
@Configuration     //增量补充
public class MvcConfiguration implements WebMvcConfigurer {

    //SpringMVC的JavaConfig相关配置仍然可以使用
    @Override
    public void addInterceptors(InterceptorRegistry registry) {

    }
}
